package com.topideal.supplychain.hades.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.topideal.supplychain.framework.enumeration.SuccessFailureEnum;
import java.io.Serializable;

public class IFResponseDto implements Serializable {

    private static final long serialVersionUID = -5853250797702761465L;

    private String orderCode;
    /**
     * 1：成功，2：失败
     */
    private String status = SuccessFailureEnum.FAILURE.getValue();
    /**
     * 存放错误信息
     */
    private String notes;


    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @JsonIgnore
    public Boolean isSuccess() {
        return this.status.equals(SuccessFailureEnum.SUCCESS.getValue());
    }

}
